package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.article.query.TravelQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    int updateByPrimaryKey(Travel record);


    List<Travel> selectForList(TravelQuery qo);

    List<Travel> selectViewNumTop3(Long destId);

    Travel getcoverUrl(Long travelId);

    List<Travel> queryByDestId(Long destId);

    List<Travel> selectByIds(@Param("tids") List<Long> tids);
}